//
//  Zombie.m
//  OC02_work
//
//  Created by 侯平章 on 16/2/21.
//  Copyright © 2016年 侯平章. All rights reserved.
//

#import "Zombie.h"

@implementation Zombie
//自定义初始化方法
- (instancetype)initWithTotal:(NSInteger)total every:(NSInteger)every{
    self = [super init];
    if (self) {
        _total = total;
        _every = every;
    }
    return self;
}
//setter方法
- (void)setTotal:(NSInteger)total{
    _total = total;
}
- (void)setEvery:(NSInteger)every{
    _every = every;
}
//getter方法
- (NSInteger)total{
    return _total;
}
- (NSInteger)every{
    return _every;
}
- (void)sayHi{
    NSLog(@"%ld,%ld",_total,_every);
}


@end
